package jse.test20160511Adapter;

public class GpsCar extends Car implements Gps{
	
	@Override
	public Point getLocaltion() {
		
		Point  point= new Point(20, 30);
		return point;
	}
	
	@Override
	public String toString() {
		
		StringBuilder sb = new StringBuilder();
		sb.append(super.toString());
		sb.append("坐标"+ "x:"+getLocaltion().getX()+"y"+getLocaltion().getY());
		return sb.toString();
	}

}
